home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / cp2dekit / h / ss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-25  |  602 b   |  34 lines

  1. #define SS_DEVTYPE 3
  2. #define SS_PLAYER 0
  3. #define SS_SAMPLER 1
  4. #define SS_WAVETABLE 2
  5. #define SS_MIDI 3
  6. #define SS_NEEDPLAYER 4
  7. #define SS_NEEDWAVETABLE 8
  8.  
  9. struct sounddevice;
  10.  
  11. struct deviceinfo
  12. {
  13.   sounddevice *dev;
  14.   signed short port;
  15.   signed short port2;
  16.   signed char irq;
  17.   signed char irq2;
  18.   signed char dma;
  19.   signed char dma2;
  20.   unsigned long opt;
  21.   signed char subtype;
  22.   unsigned char chan;
  23.   unsigned long mem;
  24. };
  25.  
  26. struct sounddevice
  27. {
  28.   char type;
  29.   char name[32];
  30.   int (*Detect)(deviceinfo &c);
  31.   int (*Init)(const deviceinfo &c);
  32.   void (*Close)();
  33. };
  34.